<div class="form-group">
    <label for="templateName" class="col-sm-2 control-label">运费模板名称</label>
    <div class="col-sm-10">
        #@textInput("text","deliveryConfig.template_name","template_name","请输入快递模板名称...",deliveryConfig.template_name??'')
    </div>
</div>
<div class="form-group">
    <label for="name" class="col-sm-2 control-label">快递名称</label>
    <div class="col-sm-10">
        <select class="form-control" name="deliveryConfig.name" id="delivery_code">
            <option value="0">==请选择==</option>
            <option value="顺丰快递,1" #if(deliveryConfig??&&deliveryConfig.name=="顺丰快递,1")selected#end>顺丰快递</option>
            <option value="圆通快递,2" #if(deliveryConfig??&&deliveryConfig.name=="圆通快递,2")selected#end>圆通快递</option>
            <option value="中通快递,3" #if(deliveryConfig??&&deliveryConfig.name=="中通快递,3")selected#end>中通快递</option>
            <option value="申通快递,4" #if(deliveryConfig??&&deliveryConfig.name=="申通快递,4")selected#end>申通快递</option>
            <option value="百世快递,5" #if(deliveryConfig??&&deliveryConfig.name=="百世快递,5")selected#end>百世快递</option>
        </select>
    </div>
</div>

<div class="form-group">
    <label for="area" class="col-sm-2 control-label">运送区域</label>
    <div class="col-sm-10">
        <input type="checkbox" value="0" id="selectAll"> 全国<br/>
        #for(x:province)
            #if((for.index+1)%6==0)
                <span style="padding: 5px;"><input type="checkbox" name="area" value="#(x.id)"> #(x.name??'')</span><br/>
            #else
        <span style="padding: 5px;"><input type="checkbox" name="area" value="#(x.id)"> #(x.name??'')</span>
            #end
        #end
    </div>
</div>

<div class="form-group">
    <label for="first_weight_price" class="col-sm-2 control-label">首重价格(元)</label>
    <div class="col-sm-10">
        #@textInput("text","first_weight_price","first_weight_price","请输入首重...",deliveryConfig.firstWeightPrice()??'')
    </div>
</div>
<div class="form-group">
    <label for="additional_weight_price" class="col-sm-2 control-label">续重价格(元)</label>
    <div class="col-sm-10">
        #@textInput("text","additional_weight_price","additional_weight_price","请输入续重...",deliveryConfig.additionalWeightPrice()??'')
    </div>
</div>
<div class="form-group">
    <div class="col-sm-offset-8 col-sm-10">
        <button type="button" id="submitBtn" class="btn btn-primary">点我保存</button>
        <input type="hidden" name="deliveryConfig.id" value="#(deliveryConfig.id??'')" id="id">
    </div>
</div>